#! /bin/bash

# closed stations
STATIONS="calg"
YMIN=1976
YMAX=1977

#STATIONS="huan"
#YMIN=1953
#YMAX=1992

#STATIONS="hle1"
#YMIN=1991
#YMAX=2006

#STATIONS="drhm ldvl mtws"
#YMIN=2010
#YMAX=2014

STATIONS="pol1"
YMIN=2012
YMAX=2015

#DATA="ori"
DATA="1h"

# create working directory
if [ ! -d /var/tmp/nmdb ]; then
  mkdir /var/tmp/nmdb
fi

for YEAR in $(seq $YMIN $YMAX); do
  for STATION in $STATIONS; do
    sh nmdb_revise.sh $STATION $DATA $YEAR
  done
done                                    
